/**
 * 
 */
package messages;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * @author Vodi
 * LoginMsg is a class used by Message to deliver user login details
 */
public class LoginMsg implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private ArrayList<String> loginDetails;
	
	public LoginMsg(String username, String password) {
		loginDetails = new ArrayList<>();
		loginDetails.add(username);
		loginDetails.add(password);
	}
	
	/**
	 * 
	 * @return Long username
	 */
	public Long getUsername() {
		return Long.parseLong(loginDetails.get(0));
	}
	
	/**
	 * 
	 * @return String password
	 */
	public String getPassword() {
		return loginDetails.get(1);
	}
}
